package com.hailian.fintech.hlbackingserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author wk
 * @since 2020-05-30
 */
@Data
@Accessors(chain = true)
@TableName("hl_bank")
public class Bank extends Model<Bank> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 银行卡号
     */
    private String banknumber;
    /**
     * 所属银行
     */
    private String bank;
    /**
     * 银行卡余额
     */
    private BigDecimal money;
    /**
     * 费率
     */
    private BigDecimal rate;
    /**
     * 手续费
     */
    @TableField("service_charge")
    private BigDecimal service_charge;

    private Integer uid;

    private String username;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
